<?php
/**
{
    "schoolLogId": "INT //日志id",
    "schoolId": "INT //机构@foreign::tbl_school; @search; ",
    "status": "TINYINT //审核结果@status; 3::审核通过; 4::审核不通过; @search; ",
    "reason": "VARCHAR //原因",
    "created": "DATETIME //创建时间"
}
 */

class SchoolLog extends Base
{
    
	public $schoolLogId= '';//日志id
	public $schoolId= '';//机构@foreign::tbl_school;@search;
	public $status= "3";//审核结果@status;3::审核通过;4::审核不通过;@search;
	public $reason= NULL;//原因
	public $created= 'CURRENT_TIMESTAMP';//创建时间

    public $isDbData = false;

    public function __construct()
    {
        parent::__construct();
    }


    public function __get($name) {
        return $this->$name;
    }

    public function __set($name, $value) {
        if(!$this->isDbData){
            if(!in_array($name,$this->loadedFiled))$this->loadedFiled[] = $name;
        }

        $this->$name=$value;
        $this->arr[$name] = $value;
    }

    public  function table()
    {
        return 'tbl_school_log';
    }
    
    public  function key(){
        return 'schoolLogId';
    }


    
    public static  function hideField()
    {
        return [];
    }
            
    public static  function imageField()
    {
        return [];
    }
            
    public static  function skipField()
    {
        return [];
    }
            
    public static  function noListField()
    {
        return [];
    }
            
    public static  function noViewField()
    {
        return [];
    }
            
    public static  function noEditField()
    {
        return [];
    }
            
    public static  function htmlField()
    {
        return [];
    }
            
    public static  function jsonField()
    {
        return [];
    }
            
    public static  function uploadField()
    {
        return [];
    }
            
    public static  function noLoadField()
    {
        return [];
    }
            
    public static  function deleteField()
    {
        return [];
    }
            
    public function className()
    {
        return 'SchoolLog';
    }
    
    public  function field()
    {
        return array (  'schoolLogId' =>   array (    0 => 'INT',    1 => 11,    2 => '日志id',  ),  'schoolId' =>   array (    0 => 'INT',    1 => 11,    2 => '机构@foreign::tbl_school;@search;',  ),  'status' =>   array (    0 => 'TINYINT',    1 => 4,    2 => '审核结果@status;3::审核通过;4::审核不通过;@search;',  ),  'reason' =>   array (    0 => 'VARCHAR',    1 => 1024,    2 => '原因',  ),  'created' =>   array (    0 => 'DATETIME',    1 => 0,    2 => '创建时间',  ),);
    }


}